/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package triploa;

import java.io.IOException;
import java.util.Vector;
import org.kxml2.io.KXmlParser;
import org.xmlpull.v1.XmlPullParserException;

public class GeoCoding {

    private Vector results = null;

    private GeoCoding() {
        results = new Vector();
    }
/**
 * call for getting a new instance of this class from xml
 * @param p Parser
 * @return a new instance of FeedBack
 * @throws java.io.IOException
 * @throws org.xmlpull.v1.XmlPullParserException
 */
    public static GeoCoding create(KXmlParser p) throws IOException, XmlPullParserException {
        GeoCoding geo = new GeoCoding();
        geo.update(p);
        return geo;
    }
/**
 * Update this object class from xml parser
 * @param p Parser
 * @throws java.io.IOException
 * @throws org.xmlpull.v1.XmlPullParserException
 */
    public void update(KXmlParser p) throws IOException, XmlPullParserException {
        Locazione app = Locazione.create(p);
        while (app != null) {
            getResults().addElement(app);
            app = Locazione.create(p);
        }
    }

    public

    Vector getResults() {
        return results;
    }

    public void setResults(Vector results) {
        this.results = results;
    }
}
